a=int(input())
b=int(input())
Sum=a+b
Difference=a-b
Product=a*b
Average=(a+b)/2
Distance=abs(a-b)
Minimum=min(a,b)
Maximum=max(a,b)
print(f"Sum:{'':<{12 - 4}}{Sum:>6}")
print(f"Difference:{'':<{12 - 11}}{Difference:>6}")
print(f"Product:{'':<{12 - 8}}{Product:>6}")
print(f"Average:{'':<{12 - 8}}{Average:>9.2f}")
print(f"Distance:{'':<{12 - 9}}{Distance:>6}")
print(f"Minimum:{'':<{12 - 8}}{Minimum:>6}")
print(f"Maximum:{'':<{12 - 8}}{Maximum:>6}")